home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / sre0990a.zip / SRE.CFG < prev    next >
Text File  |  1993-01-07  |  8KB  |  189 lines

  1. {
  2.   begin "SRE:II Installation"
  3.   ------------------------
  4.   (set game "SRE")
  5.   (set version "0.990")
  6.   (set 4-dos (4-dos?))
  7.   (set ResourceFile "RESOURCE.DAT")
  8.  
  9.   (display (cc 14) game " " (cc 15) version (cc 7) " setup:\n\n")
  10.  
  11.   (display "The " game " directory is `" (cc 14) (fix-path (get-cwd)) (cc 7) "'.\n\n")
  12.  
  13.   (set BBSDirectory (read-string "Which directory is your BBS in?\n> "))
  14.   [ if (not BBSDirectory)
  15.       (set BBSDirectory ".")
  16.   ]
  17.   (set BBSDirectory (fix-path BBSDirectory))
  18.   (set DoorFileDir BBSDirectory)
  19.   [ if (not (ask "Does your BBS produce door files in " (cc 14) DoorFileDir (cc 7) "?  [Y/n] "))
  20.       (set DoorFileDir (read-string "Enter the full path for your BBS's door files:\n> "))
  21.       (set DoorFileDir (fix-path DoorFileDir))
  22.   ]
  23.  
  24.   (write-setup-sr)
  25.  
  26.   (set BatchFile (concat BBSDirectory game ".BAT"))
  27.   [ if (not (ask "Write to " (cc 14) BatchFile (cc 7) "?  [Y/n] "))
  28.       (set BatchFile (read-string "Enter the full filename for your batch file:\n> "))
  29.   ]
  30.  
  31.   (display (cc 12) " ──────────────────────────────────────────────────────────────────────\n" (cc 7))
  32.  
  33.   "Ask about special effects"
  34.   (display "Special effects are extra ANSI animations shown when the user is at a\n"
  35.            "prompt.  They may slow down systems running under DESQview, MS-Windows,\n"
  36.            "or OS/2.  They also may fill up your modem buffer if you use locked\n"
  37.            "baud rates.  If you are running under a multitasking system or you\n"
  38.            "have a high-speed modem, I recommend not using special effects.\n")
  39.   (set SpecialEffects (ask "Do you want Special Effects? [Y/n] "))
  40.   [ if (not (error? SpecialEffects))
  41.     (if SpecialEffects (set SpecialEffects "TRUE"))
  42.     (if (not SpecialEffects) (set SpecialEffects "FALSE"))
  43.     (resource-edit ResourceFile "SpecialEffects" SpecialEffects)
  44.   ]
  45.  
  46.   (set LockedBaud (read-string "If you have locked baud rates, please enter the baud rate:\n> "))
  47.   (if LockedBaud (resource-edit ResourceFile "LockBaudRate" LockedBaud))
  48.   (if (not LockedBaud) (resource-edit ResourceFile "LockBaudRate" "none"))
  49.  
  50.   (display (cc 12) " ──────────────────────────────────────────────────────────────────────\n" (cc 7))
  51.  
  52.   (set L-ansi-scores
  53.     (read-string "If you want an ANSI score file, enter the full filename:\n> "))
  54.   (if L-ansi-scores
  55.         (resource-edit ResourceFile "Scores.File.ANSI" L-ansi-scores))
  56.   (if (not L-ansi-scores)
  57.         (resource-edit ResourceFile "Scores.File.ANSI" "\"\""))
  58.   (set L-text-scores
  59.     (read-string "If you want a TEXT score file, enter the full filename:\n> "))
  60.   (if L-text-scores
  61.         (resource-edit ResourceFile "Scores.File.Text" L-text-scores))
  62.   (if (not L-text-scores)
  63.         (resource-edit ResourceFile "Scores.File.Text" "\"\""))
  64.  
  65.   (display (cc 12) " ──────────────────────────────────────────────────────────────────────\n" (cc 7))
  66.  
  67.   (set L-ansi-news
  68.     (read-string "If you want an ANSI Today's news file, enter the full filename:\n> "))
  69.   (set L-text-news
  70.     (read-string "If you want a TEXT Today's news file, enter the full filename:\n> "))
  71.   (set L-ansi-ynews
  72.     (read-string "If you want an ANSI Yesterday's news file, enter the full filename:\n> "))
  73.   (set L-text-ynews
  74.     (read-string "If you want a TEXT Yesterday's news file, enter the full filename:\n> "))
  75.  
  76.   (display (cc 12) "\n\n ─────────────────────────────────────────────────────────────────────\n" (cc 7))
  77.  
  78.   [ if (not BatchFile)
  79.     (display "Not creating a batch file.\n")
  80.   ]
  81.  
  82.   [ if BatchFile
  83.     (display "Writing to " (cc 14) BatchFile (cc 7) "\n")
  84.  
  85.     "Write a batch file"
  86.     (rewrite BatchFile)
  87.  
  88.     (write "@ECHO OFF\n")
  89.     [ if 4-dos
  90.         (write "REM 4-DOS version\n")
  91.         (write "PUSHD " (fix-path (get-cwd)) "\n")
  92.     ]
  93.     (if (not 4-dos) (write (cd-cmd (fix-path (get-cwd)))))
  94.  
  95.     (set Setup (setup-type))
  96.     (set done? #f)
  97.  
  98.     [ if (= Setup "Searchlight")
  99.         " %1 is the username "
  100.         " %2 is ANSI:  `C' means yes"
  101.         " %3 is Time left"
  102.         " %4 is Baud rate"
  103.         " %5 is COM port"
  104.         (set done? #t)
  105.         (write "ECHO %1  >DOORFILE.SR\n"
  106.                "IF [%2]==[C] ECHO 1 >>DOORFILE.SR\n"
  107.                "IF NOT [%2]==[C] ECHO 0 >>DOORFILE.SR\n"
  108.                "ECHO -1 >>DOORFILE.SR\n"
  109.                "ECHO 25 >>DOORFILE.SR\n")
  110.         [ if LockedBaud
  111.           (write "REM For non-locked, use ECHO %4 >>DOORFILE.SR\n"
  112.                  "ECHO " LockedBaud " >>DOORFILE.SR\n")
  113.         ]
  114.         [ if (not LockedBaud)
  115.           (write "ECHO %4 >>DOORFILE.SR\n")
  116.         ]
  117.         (write "ECHO %5 >>DOORFILE.SR\n")
  118.         (write "ECHO %3 >>DOORFILE.SR\n")
  119.     ]
  120.  
  121.     [ if (= Setup "PC-Board NEW")
  122.         (display "PC-Board 14.x support has not yet been added to SRDOOR.\n")
  123.         (set done? #t)
  124.         (set PCB-2-SR (ask "Do you have PCB-2-SRE? [Y/N] "))
  125.         [ if PCB-2-SR
  126.           (display "Which directory is PCB-2-SRE in (include drive and trailing '\\')?\n")
  127.           (set PCB-dir (read-string "> "))
  128.           (write PCB-dir "PCB2SRE /B=" DoorFileDir " /D=. /P /L=24\n")
  129.         ]
  130.         [ if (not PCB-2-SR)
  131.           (write "ECHO PC-Board support is not working yet.")
  132.           (display "PC-Board 14.x support has not been added to SRDOOR.  There "
  133.                    "is a program called PCB-2-SRE that converts PC-Board 14.5 files "
  134.                    "to the format that " game " requires.  You might want to get "
  135.                    "PCB-2-SRE or a door converter that converts to a format used "
  136.                    "by another BBS.  (You will have to run the installation "
  137.                    "again.)  PCB-2-SRE is available on the Solar Realm, and you can "
  138.                    "contact the author at an287@cleveland.freenet.edu (through "
  139.                    "Internet or CompuServe).\n")
  140.         ]
  141.     ]
  142.  
  143.     [ if (= Setup "Maximus")
  144.         (display "The installation program assumes you are using Dennis Lozen's "
  145.                  "Maximus installation setup.  If you are not, and you prefer to "
  146.                  "use DORINFO1.DEF for your setup, please re-run the installer "
  147.                  "for the New RBBS setup.\n")
  148.         (set done? #t)
  149.     ]
  150.  
  151.     [ if (not done?)
  152.         (write "SRDOOR")
  153.         [ if (= Setup "GT")
  154.             (set ComPort (read-string "On what COM port do you run?  [1-8]\n> "))
  155.             (write " GT " ComPort)
  156.         ]
  157.         [ if (= Setup "PC-Board OLD")
  158.             (set ComPort (read-string "On what COM port do you run?  [1-8]\n> "))
  159.             (write " PCBOARD2 " ComPort)
  160.         ]
  161.         (write "\n")
  162.     ]
  163.  
  164.     (write game "\n")
  165.  
  166.     (if L-ansi-news (write "COPY NEWS.ANS " L-ansi-news "\n"))
  167.     (if L-text-news (write "COPY NEWS.TXT " L-text-news "\n"))
  168.     (if L-ansi-ynews (write "COPY YESTNEWS.ANS " L-ansi-ynews "\n"))
  169.     (if L-text-ynews (write "COPY YESTNEWS.TXT " L-text-ynews "\n"))
  170.  
  171.     (if 4-dos (write "POPD\n"))
  172.     (if (not 4-dos) (write (cd-cmd BBSDirectory)))
  173.  
  174.     (write "EXIT\n")
  175.   ]
  176.  
  177.   (display (cc 12) " ──────────────────────────────────────────────────────────────────────\n" (cc 7))
  178.  
  179.   (display (cc 15) "\nImportant:  " (cc 7) "Run " (cc 14) "SRE RESET" (cc 7) " to set up a new game of SRE.\n\n")
  180.   (display "\nSee " (cc 14) "Docs/Resource.DOC" (cc 7) " for setup/customization information.\n")
  181.   (display "See " (cc 14) "Docs/Sysop.DOC" (cc 7) " for information on customizing SRE.\n")
  182.   (display "See " (cc 14) "Docs/Register.DOC" (cc 7) " for info on registration.\n")
  183.  
  184.   (pause "\nPress any key to exit... ")
  185.   ----------------------
  186.   end "SRE Installation"
  187. }
  188.  
  189.